package com.example.hyw.szysteam.utils;

import android.content.Context;
import android.view.View;

import com.qmuiteam.qmui.widget.dialog.QMUITipDialog;

/**
 * Created by HYW on 2018/6/5.
 */

public class ShowTips {
    public static void show(int iconType, String message, View view, Context context){
        final QMUITipDialog tipDialog;
        tipDialog=new QMUITipDialog.Builder(context)
                .setIconType(iconType)
                .setTipWord(message)
                .create();
        tipDialog.show();
        view.postDelayed(new Runnable() {
            @Override
            public void run() {
                tipDialog.dismiss();
            }
        },1000);
    }
}
